/*
 * @Author: wangjh wangjiahui0710@163.com
 * @Date: 2024-06-11 18:09:29
 * @LastEditors: wangjh wangjiahui0710@163.com
 * @LastEditTime: 2024-07-22 14:28:14
 * @FilePath: \cip-mobile\src\main.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import '@unocss/reset/tailwind.css';
import 'uno.css';
import 'cesium/Build/Cesium/Widgets/widgets.css';
import 'dayjs/locale/zh-cn';

import App from './app.vue';
import { setupRouter } from './router';
import { setupStore } from './stores';
import { createToDayjsPlugin } from './utils/to-dayjs';
import { createViewPortPlugin } from './utils/view-port';
import { IconFont } from '@nutui/icons-vue';
import '@nutui/icons-vue/dist/style_iconfont.css';
import { Notify } from '@nutui/nutui';
import eventBus from 'vue3-eventbus';

export const app = createApp(App);

// dayjs  $toDayjs
app.use(createToDayjsPlugin());

// eventBus
app.use(eventBus);

// 屏幕适配 $vh $vw $viewPort
app.use(createViewPortPlugin(375, 812));

// nutui-iconfont
app.use(IconFont);

// nutui消息通知
app.use(Notify);

// pinia
setupStore(app);

// 路由
setupRouter(app);

app.mount('#app');
